<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="easyui-layout" fit="true">
	<div data-options="region:'center'" border="false">
		<h1>自动生成试卷</h1>
		<div class="div_normal">
			这是一个功能强大的试卷生成功能，设置好筛选条件后，系统会按要求随机生成一份试卷，提取码是为了保密需要而强制要求提供的一个编号，学员考试时需要提供给学员。
		</div>
		<form id="chutiForm" style="overflow: hidden;">
			<input type="hidden" name="emp" value="${user.emp.id}">
			<div class="left">
				<fieldset class="fs">
					<legend>基本信息</legend>
					<div class="exam_frame">
						<div class="form_line">试卷/练习名称</div>
						<div class="form_line">
							<input style="height: 28px" id="title" name="name"
								class="easyui-textbox textbox-radius">
						</div>
						<div class="form_line">出卷人： ${user.name}</div>
						<div class="form_line">
							<input type="hidden" name="author" value="${user.name}">
						</div>
						<div class="form_line">有效日期</div>
						<div class="tip">在有效期内的试卷称之为正常试卷，否则称之为失效试卷</div>
						<div class="form_line">
							<input style="height: 28px" id="sTime"
								data-options="editable:false" class="easyui-datebox"
								name="startTime"> - <input style="height: 28px"
								id="eTime" data-options="editable:false" class="easyui-datebox"
								name="endTime">
						</div>
						<div class="form_line">选择题数量</div>
						<div class="form_line">
							<input style="height: 28px" name="chooseCount" id="chooseCount"
								class="easyui-numberspinner" style="width:80px;"
								required="required" value="10"
								data-options="min:0,max:100,editable:true">
						</div>
						<div class="form_line">判断题数量</div>
						<div class="form_line">
							<input style="height: 28px" name="opinionCount" id="opinionCount"
								class="easyui-numberspinner" style="width:80px;"
								required="required" value="10"
								data-options="min:0,max:100,editable:true">
						</div>
						<div class="form_line">编程与简答题数量</div>
						<div class="form_line">
							<input style="height: 28px" name="programCount" id="programCount"
								class="easyui-numberspinner" style="width:80px;"
								required="required" value="2"
								data-options="min:0,max:100,editable:true">
						</div>
						<div class="form_line">派发部门</div>
						<div class="tip">必须指定派发的班级，只有指定的班级学员才能看到试卷</div>
						<div class="form_line">
							<c:forEach items="${cla}" var="cla">
								<div class="level2">
									<label> <input type="checkbox" name="cla"
										value="${cla.id}">${cla.className}
									</label>
								</div>
							</c:forEach>
						</div>
						<div class="form_line clear">说明</div>
						<div class="tip">填写说明，比如每道试题的分值、考试中需要注意的事项</div>
						<div class="form_line">
							<textarea name="remark" class="easyui-textbox"
								data-options="multiline:true" style="height: 55px; width: 500px"></textarea>
						</div>
					</div>
				</fieldset>
			</div>

			<div class="right">
				<fieldset class="fs">
					<legend>出题范围</legend>
					<div class="exam_frame">
						<div class="form_line">阶段与章节</div>
						<div class="line"></div>
						<div class="form_line">
							<div class="easyui-accordion" data-options="multiple:true">
								<c:forEach items="${dg}" var="dg" varStatus="status">
									<div title="${dg.name}" data-options="iconCls:'icon-exce'"
										style="overflow: auto; padding: 10px;">
										<div class="item">
											<input class="btn-select" type="checkbox"><span
												style="font-size: 12px; color: #CCC;">全选/全不选</span>
											<c:forEach items="${zj[status.index]}" var="zj">
												<div class="level2 ">
													<label> <input type="checkbox" class="check"
														name="chapter" value="${zj.id}">${zj.name}
													</label>
												</div>
											</c:forEach>
										</div>
									</div>
								</c:forEach>
							</div>
						</div>
					</div>
				</fieldset>
			</div>
		</form>

	</div>
	<a id="btn-reset"
		style="position: absolute; right: 57px; bottom: 12px;" href="#"
		class="easyui-linkbutton" data-options="iconCls:'icon-add'">重置</a> <a
		id="btn-finish"
		style="position: absolute; right: 123px; bottom: 12px;" href="#"
		class="easyui-linkbutton" data-options="iconCls:'icon-save'">生成练习</a>
</div>
<script src="public/js/publish-exercises.js"></script>

